package com.bishitest.domain;

import java.math.BigDecimal;

/**
 * @author XuFan
 * @create 2025-08-19-18:33
 */
public class OrderListRecord {
    public OrderListRecord () {}

    public OrderListRecord (String goodsName, int goodsNum, BigDecimal goodsUnitPrice) {
        this.goodsName = goodsName;
        this.goodsNum = goodsNum;
        this.goodsUnitPrice = goodsUnitPrice;
        this.setRecordPrice();
    }

    public String goodsName;
    public int goodsNum;
    public BigDecimal goodsUnitPrice;
    public BigDecimal recordPrice;

    public void setRecordPrice() {
        this.recordPrice = this.goodsUnitPrice.multiply(new BigDecimal(this.goodsNum));
    }
}
